﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Area
    {
        public void Area1(double r)
        {
            double s;
            double a = 3.14;
            s = a * r * r;
            Console.WriteLine("圆的面积："+s);

        }
        public void Area1(double b, double c) 
        
        {
            double s;
            s = b * c;
            Console.WriteLine("长方形的面积："+s);
        }

    }
}
